
var WindProgress = new Object();

WindProgress.open = function() {
	var layer = new WindView;
	layer.setCssClass("WindProgressLayer");
	layer.setFullscreen(true);
	
	var box = new WindView;
	box.setCssClass("WindProgressBox");
	box.setCentered(true);
	layer.addView(box);
	
	var spinner = new WindView;
	spinner.setCssClass("WindProgressSpinner");
	spinner.setText("Please wait...");
	box.addView(spinner);	
	
	WindWindow.addView(layer);
	return layer;
}

WindProgress.close = function(layer) {
	WindWindow.removeView(layer);
}
